import {createAPI} from '../../request.js'

const BASE_URL =  '/api'

// 请求地址前缀拼接
const APP_PRE = BASE_URL + '/xtgl_02_01/jcqxGnzy'

//！ 接口别名的命名需要遵循  类名 + 方法名，风格需遵循驼峰风格（首字母小写）  注：idea中可安装CamelCase，使用快捷键 shift + alt + u 自动转换为驼峰效果。

// 查询单条数据
export const jcqxCnzyCzrzFindOne = data => createAPI(APP_PRE + '/findOne', 'get', data)

// 查询多条数据
export const jcqxCnzyFindList = data => createAPI(APP_PRE + '/findList', 'get', data)

// 查询分页列表数据
export const jcqxCnzyFindListByPage = data => createAPI(APP_PRE + '/findListByPage', 'post', data)

// 新增
export const jcqxCnzyAdd = data => createAPI(APP_PRE + '/add', 'post', data)

// 修改
export const jcqxCnzyUpdate = data => createAPI(APP_PRE + '/update', 'post', data)

// 删除
export const jcqxCnzyDel = data => createAPI(APP_PRE + '/delete', 'post', data)

//修改图标
export const jcqxCnzyUpdateTb = data => createAPI(APP_PRE + '/updateTb', 'post', data)

const APP_PREMX = BASE_URL + '/xtgl_02_01/jcqxGnzymx'

export const jcqxCnzymxFindListByPage = data => createAPI(APP_PREMX + '/findListByPage', 'get', data)

export const jcqxCnzymxAdd = data => createAPI(APP_PREMX + '/add', 'post', data)

export const jcqxCnzymxUpdate = data => createAPI(APP_PREMX + '/update', 'post', data)

export const jcqxCnzymxDel = data => createAPI(APP_PREMX + '/delete', 'post', data)